home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ WMP 2.xpl < prev    next >
Text File  |  2001-02-10  |  2KB  |  66 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH 1"="Program Options\Built in Windows Apps\Windows Media Player"
  5. "UIPATH 2"="Internet\Windows Media Player"
  6. "NAME"="Media Guide Button"
  7. "LANGUAGE"="VBScript"
  8. "VERSION"="1.13"
  9. "TEXT 1"="Button Name"
  10. "TEXT 2"="Button URL"
  11. "DESCRIPTION 1"="Allows you to change the site URL and name of the 'Media Guide' button if you would rather use something different than the default "http://windowsmedia.microsoft.com/default.asp"."
  12. "DESCRIPTION 2"="To hide the button again, clear the fields."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17.  
  18.  
  19. sPath="HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\"
  20. sV1="ShowCaseButton"
  21. sV2="ShowCaseURL"
  22.  
  23.  
  24. Sub Plugin_Initialize 
  25.  s=RegReadValue(sPath & sV1)
  26.  SetUIElement 1,s
  27.  
  28.  s=RegReadValue(sPath & sV2)
  29.  SetUIElement 2,s
  30. End Sub
  31.  
  32.  
  33. Sub Plugin_CheckData(ElementIndex)
  34. End Sub
  35.  
  36.  
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  s=GetUIElement(1)
  40.  if len(s)=0 then
  41.     'If values exists, delete it
  42.     s=RegReadValue(sPath & sV1)
  43.     if IsEmpty(s)=false then Call RegDeleteValue(sPath & sV1)
  44.  else
  45.     Call RegWriteValue(sPath & sV1,s,1)
  46.  end if
  47.  
  48.  s=GetUIElement(2)
  49.  if len(s)=0 then
  50.     'If values exists, delete it
  51.     s=RegReadValue(sPath & sV2)
  52.     if IsEmpty(s)=false then Call RegDeleteValue(sPath & sV2)
  53.  else
  54.     Call RegWriteValue(sPath & sV2,s,1)
  55.  end if
  56.  
  57.  
  58. End Sub
  59.  
  60.  
  61. Sub Plugin_Terminate 
  62. End Sub
  63.  
  64.  
  65.  
  66.